-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: support table sample #16505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: support table sample #16505
Conversation
It would be better to add more details about the PR, such as: |
|
I suggest to first open an issue to describe full syntax and semantics of this table sample feature, and also include the reference system (like postgres). After we have reached some agreement, then we can start implementing. There is another implementation that seems to have several syntax difference than this PR #16325 @theirix We had a previous discussion that DF can include features for postgres syntax. However if it's referencing other systems, then it might need more discussion and wider approval. |
Updated, and this PR implements Spark style sample. |
Which issue does this PR close?
Close #16533
Rationale for this change
Currently table sample is not supported.
What changes are included in this PR?
support table sample.
it's row level.
three sample methods are supported.
Are these changes tested?
UT
Are there any user-facing changes?
Yes, If the user uses the match statement for logical plan, the user needs to add sample into match statement.